package com.xiaoma.bingox.vo;

import java.util.ArrayList;
import java.util.List;

public class TreeNode {

    private Integer id;
    private String text;
    private Boolean checked;
    private Attributes attributes = new Attributes();
    private List<TreeNode> children = new ArrayList<TreeNode>();
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getText() {
        return text;
    }
    public void setText(String text) {
        this.text = text;
    }
    public Boolean getChecked() {
        return checked;
    }
    public void setChecked(Boolean checked) {
        this.checked = checked;
    }
    public Attributes getAttributes() {
        return attributes;
    }
    public void setAttributes(Attributes attributes) {
        this.attributes = attributes;
    }
    public List<TreeNode> getChildren() {
        return children;
    }
    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }
    
    public void addChild(TreeNode treeNode) {
        this.children.add(treeNode);
    }
}
